﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;

/// <summary>
/// Summary description for BUS_Manufacturer
/// </summary>
public class BUS_Manufacturer
{
    DAL_Manufacturer data = new DAL_Manufacturer();
    public DataTable Manufacturer_GetByAll()
    {
        DataTable dt = new DataTable();
        try
        {
            dt = data.Manufacturer_GetByAll();
        }
        catch (Exception)
        {

            throw;
        }
        return dt;
    }
    public DataTable Manufacturer_GetByID(string id)
    {
        DataTable dt = new DataTable();
        try
        {
            dt = data.Manufacturer_GetByID(id);
        }
        catch (Exception)
        {

            throw;
        }
        return dt;
    }

    public DataTable Manufacturer_GetByTop(int top, string where, string Manufacturer)
    {
        DataTable dt = new DataTable();
        
        try
        {
            dt = data.Manufacturer_GetByTop(top, where, Manufacturer);

        }
        catch (Exception)
        {

            throw;
        }
        return dt;
    }
    public void Manufacturer_Insert(DTO_Manufacturer obj)
    {

        try
        {
            data.Manufacturer_Insert(obj);
        }
        catch (Exception)
        {

            throw;
        }

    }
    public void Manufacturer_UpdateByAll(string Id, DTO_Manufacturer obj)
    {

        try
        {
            data.Manufacturer_UpdateByAll(Id, obj);
        }
        catch (Exception)
        {

            throw;
        }

    }

    public void Manufacturer_UpdateBySet(string Id, string Set)
    {

        try
        {
            data.Manufacturer_UpdateBySet(Id, Set);
        }
        catch (Exception)
        {

            throw;
        }

    }
    public void Manufacturer_Delete(string Id)
    {

        try
        {
            data.Manufacturer_Delete(Id);
        }
        catch (Exception)
        {

            throw;
        }

    }

	
}